package cn.com.greatwall.common.redis.properties;

import java.util.List;

import org.springframework.boot.context.properties.ConfigurationProperties;

import lombok.Getter;
import lombok.Setter;

/**
 * @Author herw
 * @Time 2021-12-26 16:56:19
 * @Version 1.0
 * @Description: TODO(用一句话描述该文件做什么)
 */
@Setter
@Getter
@ConfigurationProperties(prefix = "greatwall.cache-manager")
public class CacheManagerProperties {
    private List<CacheConfig> configs;
    
    @Getter
    @Setter
    public static class CacheConfig {
        /**
         * cache key
         */
        private String key;
        /**
         * 过期时间，sec
         */
        private long second = 60;
    }
}
